import request from '@/utils/request'

// 查询用印类型列表
export function listSealType(query) {
  return request({
    url: '/seal/sealType/list',
    method: 'get',
    params: query
  })
}

// 查询用印类型详细
export function getSealType(sealTypeId) {
  return request({
    url: '/seal/sealType/' + sealTypeId,
    method: 'get'
  })
}

// 新增用印类型
export function addSealType(data) {
  return request({
    url: '/seal/sealType',
    method: 'post',
    data: data
  })
}

// 修改用印类型
export function updateSealType(data) {
  return request({
    url: '/seal/sealType',
    method: 'put',
    data: data
  })
}

// 删除用印类型
export function delSealType(sealTypeId) {
  return request({
    url: '/seal/sealType/' + sealTypeId,
    method: 'delete'
  })
}
